<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>电子商城</title>
<link href="inc/style.css" rel="stylesheet" type="text/css" />
<link href="styles/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
    int flag = 0;
    if(request.getSession().getAttribute("flag") != null)
        flag = (int)request.getSession().getAttribute("flag");
    if (flag == 43)
        out.print("<script>alert('订单创建失败!')</script>");
    request.getSession().setAttribute("flag", 0);
%>
<div id="container">
  


<script type="text/javascript">
	function checkLogin(){//判断是否是汉字、字母、数字组成
				var user = document.getElementById("hidden").value;
				if(user == null || user ==""){
					alert("您尚未登录，请先登录！");
				}				
			}
</script>
<div id="head">
	<input type="hidden" name="loginInfo" value="com.shop.web.common.UserInfo@18192b6" id="hidden"/>
	<input type="hidden" name="loginInfo" value="" id="loginInfo"/>
    <div class="banner">
     
     
     		<marquee><p style="font-size:14px;color:orange;text-align:center;">欢迎您!${user.name}</p></marquee>
     
     </div>
   <div class="nav"><a href="<c:url value="/GoodsShow"/>">首页</a> | <a href="<c:url value="/UserUpdate"/>" >会员资料修改</a> |
       <a href="gouwuche.jsp" >购物车</a> | <a href="dingdan.jsp" >查看订单</a> | <a href="manage1.jsp">后台管理</a> </div>
  </div>
   <div id="content">
    <div class="userinfo" style="background:url(images/38.gif) no-repeat;">
   <!--  <div class="bg">
    <h4>收银结账</h4>--> 
      			
<form id="toCartConfirm" name="checkForm" onsubmit="return true;" action="<c:url value="/JieZhang"/>" method="post">
      	<input type="hidden" name="shopOrder.id" value="" id="toCartConfirm_shopOrder_id"/>
      <ul>      
          <li><span>收 件 人：</span><input type="text" id="buyer" name="shopOrder.username" value="${Buyer.id}" id="toCartConfirm_shopOrder_username"
                                        onchange="window.location.href='/JieZhang?shopOrder.username=' + document.getElementById('buyer').value"/>
            <font class="red"> *</font>
            </li>
          <li><span>邮寄地址：</span><input type="text" name="shopOrder.address" value="${Buyer.address}" id="toCartConfirm_shopOrder_address" disabled="disabled"/>
            <font class="red"> *</font></li>
          <li><span>邮政编码：</span><input type="text" name="shopOrder.postcode" maxlength="6" value="${Buyer.postalCode}" id="toCartConfirm_shopOrder_postcode" disabled="disabled"/>
            <font class="red"> *</font></li>
          <li><span>联系电话：</span><input type="text" name="shopOrder.tel" maxlength="11" value="${Buyer.telephone}" id="toCartConfirm_shopOrder_tel" disabled="disabled"/>
            <font class="red"> *</font></li>
          <li><span>付款方式：</span>
              <select name="shopOrder.pay">
                  <option value="0">微信支付</option>
                  <option value="1">支付宝支付</option>
                  <option value="2">云闪付支付</option>
              </select>
          </li>
          <li><span>运送方式：</span>
              <select name="shopOrder.carry">
                  <option value="0">圆通</option>
                  <option value="1">顺风</option>
                  <option value="2">百世</option>
              </select>
          </li>
          <li><span>备    注：</span><textarea name="shopOrder.bz" cols="50" rows="5" id="toCartConfirm_shopOrder_bz"></textarea>
         	<font class="red"> *</font></li>
         <li></li>
         <li></li>         
          </ul>
         <div class="button_img">
         <img   src="images/12.gif"   onclick="document.checkForm.submit();" style= "CURSOR:hand"/>
	     <img   src="images/13.gif"   onclick="document.checkForm.reset();" style= "CURSOR:hand"/>
	     <img   src="images/29.gif"   onclick="window.location.href='#'" style= "CURSOR:hand"/> 
       </div>
      </form>




    </div>
  </div>
  </div>
</body>
</html>
